package com.dky.satell.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dky.satell.entity.Dictionary;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author fangyuan
 * @since 2021-05-28
 */
@Mapper
public interface DictionaryMapper extends BaseMapper<Dictionary> {

    /**
     * 根据key获取数据字典
     * @param key
     * @return
     */
    Dictionary getByKey(@Param("key") String key);

}
